import type {RouteRecordRaw} from 'vue-router'

const collectRoutes: RouteRecordRaw[] = [
    {
        path: '/collect',
        name: 'Collect',
        component: () => import('./views/index.vue'),
        meta: {
            title: '懒熊收藏',
            requiresAuth: true
        },
        children: [
            {
                path: '',
                name: 'Main',
                component: () => import('./views/Main.vue'),
                meta: {
                    title: '收藏首页',
                    requiresAuth: true
                }
            },
            {
                path: 'create',
                name: 'CreateCollect',
                component: () => import('./views/Edit.vue'),
                meta: {
                    title: '添加收藏',
                    requiresAuth: true
                }
            },
            {
                path: 'edit/:id',
                name: 'EditCollect',
                component: () => import('./views/Edit.vue'),
                meta: {
                    title: '编辑收藏',
                    requiresAuth: true
                }
            },
            {
                path: 'detail/:id',
                name: 'CollectDetail',
                component: () => import('./views/Detail.vue'),
                meta: {
                    title: '收藏详情',
                    requiresAuth: true
                }
            }
        ]
    }
]

export default collectRoutes